package com.lishuang.pet.service;

import com.lishuang.basic.util.PageList;
import com.lishuang.pet.domain.SearchMasterMsg;
import com.lishuang.basic.service.IBaseService;
import com.lishuang.pet.dto.MsgDto;
import com.lishuang.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lishuang
 * @since 2022-06-18
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {



    /**
     * 发布寻主消息
     * @param
     * @return
     */
    void publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);
    /**
     * 用户查询寻主消息
     * @param
     */
    PageList<SearchMasterMsg> userSearchMasterMsg(SearchMasterMsgQuery query, HttpServletRequest request);
    /**
     * 处理中的寻主消息
     * @param
     */
    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 拒单
     * @param id
     */
    void reject(Long id);
    /**
     * 接单
     * @param msgDto
     */
    void accept(MsgDto msgDto);
}
